<script setup>
import {ref} from "vue";
let gender = ref("男")


</script>

<template>
  <form action="https://httpbin.org/get" method="get">
    <label for="male">
      <input type="radio" name="gender" id="male" value="男" v-model="gender" checked>男
    </label>

    <label for="female">
      <input type="radio" name="gender" id="female" value="女" v-model="gender">女
    </label>

    <input type="reset" value="重置">
    <input type="submit" value="提交" v-on:click="submit">
  </form>


  <h2>{{ gender }}</h2>
</template>

<style scoped>

</style>